<?php $this->pageTitle=Yii::app()->name . ' - Nạp Credit'; ?>

<?php $this->breadcrumbs=array('Nạp Credit',);?>



<h1>Nạp thẻ điện thoại</h1>


<?php $this->widget('bootstrap.widgets.TbAlert', array(
        'block'=>true, // display a larger alert block?
        'fade'=>true, // use transitions?
        'closeText'=>'&times;', // close link text - if set to false, no close link is displayed
        'alerts'=>array( // configurations per alert type
            'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), // success, info, warning, error or danger
			'error'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), 
        ),
    )); ?>



<div class="left-box-item" style="width:210px; float:left; margin-right: 5px;">

	<div class='title'>Thông tin</div>

	<div style='margin-left: 10px;'>

	<?php $usercredit = Credit::model()->findByAttributes(array('iduser'=>Yii::app()->user->getId()->id));?>

		<span>Credit hiện tại: <b><?php echo $usercredit->sodu; ?></b></span></br>

		<span>Tổng credit nạp: <b><?php echo $usercredit->tongnap; ?></b></span></br>

		<span>Credit đang xử lý: <b><?php echo $usercredit->tamgiu; ?></b></span></br>

		<span>Credit đã sử dụng: <b><?php echo $usercredit->dasai; ?></b></span></br>

		<p><?php echo CHtml::link('Lịch sử thay đổi',array('credit/history'));?></p>
		
	</div>
</div>


	<div class="right-box-item" style="width:640px; float:left; ">

		<h1>Nạp thẻ điện thoại</h1>

	
<form name="napthe" action="#" method="post">
<div id="body12" style="border: 0px solid silver;  margin: 0 auto;  padding: 10px;  width: 730;">
<table align="center" width=100%>
	
	<tr>
    	<td colspan="3">
<table id="table2" width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="center"><img src="http://decode.vn/includescards/images/mobifone.jpg" alt="" /></td>
<td align="center"><img src="http://decode.vn/includescards/images/vinaphone.jpg" alt="" /></td>
<td align="center"><img src="http://decode.vn/includescards/images/viettel.jpg" alt="" width="110" height="35" /></td>
<td align="center"><img src="http://decode.vn/includescards/images/vtc.jpg" alt="" width="100" height="35" /></td>
<td align="center"><img src="http://decode.vn/includescards/images/gate.jpg" alt="" width="100" height="35" /></td>
</tr>
<tr>
<td align="center"> <input id="92" type="radio" name="select_method" value="VMS" checked="checked" /> <strong>Mobiphone</strong></td>
<td align="center"> <input id="93" type="radio" name="select_method" value="VNP" /> <strong>Vinaphone</strong></td>
<td align="center"> <input id="107" type="radio" name="select_method" value="VIETTEL" /> <strong>Viettel</strong></td>
<td align="center"> <input id="4" type="radio" name="select_method" value="VCOIN" /> <strong>Vcoin</strong></td>
<td align="center"> <input id="4" type="radio" name="select_method" value="GATE" /> <strong>Gate</strong></td>
</tr>
</tbody>
</table>
        </td>
    </tr>
    
    <tr>
        <td  >Số seri :</td>
        <td colspan="2" width="80%"><input type="text" id="txtSoSeri" name="txtSoSeri" style="height:25px;width:200px" /></td>
    </tr>
     <tr>
        <td >Mã thẻ : </td>
        <td colspan="2" width="80%">
        	<input type="text" id="txtSoPin" name="txtSoPin" style="height:25px;width:200px" />
            
        </td>
    </tr>
   
	<tr>
        <td ></td>
		<td>
		 <input type="submit" name="NLNapThe" value="N&#7841;p Th&#7867;" class="btn btn-inverse"" /> 
		 </td>
    </tr>	
</table>

</div>
</form>

</div>